<?php
$tk_name = "saeid"; //<-- please set the username here
$tk_user_id = "123"; //<-- please set the user ID here

$tk_gender = ""; //<-- optional (the gender of the user can be "w" or "m")
$tk_age = ""; //<-- optional (the age of the user e.g. "23")
$tk_single = ""; //<-- optional (is the user single? "Yes", "no", "0" = no information)
$tk_profile_url = ""; //<-- optional (url to the users profile)
$tk_pic = ""; //<-- optional (url of the users picture)
$tk_city = ""; //<-- optional (city where the user is located, e.g. "Berlin")
$tk_zip = ""; //<-- optional (users zip code, e.g. "92553")
$tk_country = ""; //<-- optional (country where the user is located, e.g. "Germany")
$tk_app_id = "581772";
//------
//Generate the user_data string
$tk_user_data = "name:" . $tk_name . ";gender:" . $tk_gender . ";age:" . $tk_age . ";single:" . $tk_single . ";url:" . $tk_profile_url . ";pic:" . $tk_pic . ";city:" . $tk_city . ";zip:" . $tk_zip . ";country:" . $tk_country;

$tk_hash = md5( $tk_user_id . "SHTn9Re4W3vRxbmtfCBZ" );
?>
<script type="text/javascript">
var TOKSTA_CONFIG = {
	app_id : "<?= $tk_app_id ?>",
	user_id: "<?= $tk_user_id ?>",
	user_hash: "<?= $tk_hash ?>",
	user_data: "<?= $tk_user_data ?>",
	generated : "1328971742",
	im : {
		advancedSearch : ["gender","age","city","country","single"]
	},
	chatbar : {
		showUserData : ["gender","age"]
	}
};
</script>
<script src="http://embed.toksta.com/embed/toksta.js" type="text/javascript"></script>
<a href='#' onclick="tokstaChat('user123')">start chat</a>